import request from '@/utils/request'

export function getMenus() {
  return request({
    url: '/menus/menu',
    method: 'get'
  })
}

export function addOrEditMenu(data) {
  return request({
    url: '/menus/addOrEditMenu',
    method: 'post',
    data
  })
}

export function delMenu(data) {
  return request({
    url: '/menus/delMenu',
    method: 'post',
    data
  })
}
